package com.vhukze.basics.controller;

import com.vhukze.basics.service.TestService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.validation.constraints.NotBlank;

/**
 * 测试接口
 *
 * @author vhukze
 * @date 2022/8/17 15:29
 */
@Validated
@RestController
@RequestMapping("test")
public class TestController {

    @Resource
    private TestService testService;

    @GetMapping("test")
    public Object test(@NotBlank String id) {
        return testService.test(id);
    }

}
